package domain;

// Generated 04.Eyl.2012 15:12:19 by Hibernate Tools 3.4.0.CR1

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.SEQUENCE;

import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * PaneNodeDAO generated by hbm2java
 */
@Entity
@Table(name = "IBTOOLS_PANE_NODE", schema = "T32556")
public class PaneNodeDAO implements java.io.Serializable {
	
	/***
	 * PROJECT_OID -> project
	 */
	
	private Long oid;
	private ProjectInfoDAO project;
	private String xmlString;
	private Boolean status;
	private String serviceName;
	private Long serviceTable;
	private Integer paneIndex;
	private String description;

	
	public PaneNodeDAO() {
	}

	public PaneNodeDAO(ProjectInfoDAO project, String xmlString,
			Boolean status, String serviceName, Long serviceTable) {
		this.project = project;
		this.xmlString = xmlString;
		this.status = status;
		this.serviceName = serviceName;
		this.serviceTable = serviceTable;
	}

	@SequenceGenerator(name = "generator")
	@Id
	@GeneratedValue(strategy = SEQUENCE, generator = "generator")
	@Column(name = "OID", unique = true, nullable = false, scale = 0)
	public Long getOid() {
		return this.oid;
	}

	public void setOid(Long oid) {
		this.oid = oid;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "PROJECT_OID")
	public ProjectInfoDAO getProject() {
		return this.project;
	}

	public void setProject(ProjectInfoDAO project) {
		this.project = project;
	}

	@Column(name = "XML_STRING", length = 3000)
	public String getXmlString() {
		return this.xmlString;
	}

	public void setXmlString(String xmlString) {
		this.xmlString = xmlString;
	}

	@Column(name = "STATUS", precision = 1, scale = 0)
	public Boolean getStatus() {
		return this.status;
	}

	public void setStatus(Boolean status) {
		this.status = status;
	}

	@Column(name = "SERVICE_NAME", length = 80)
	public String getServiceName() {
		return this.serviceName;
	}

	public void setServiceName(String serviceName) {
		this.serviceName = serviceName;
	}

	@Column(name = "SERVICE_TABLE", scale = 0)
	public Long getServiceTable() {
		return this.serviceTable;
	}

	public void setServiceTable(Long serviceTable) {
		this.serviceTable = serviceTable;
	}

	@Column(name = "PANE_INDEX", scale = 0)
	public Integer getPaneIndex() {
		return paneIndex;
	}

	public void setPaneIndex(Integer paneIndex) {
		this.paneIndex = paneIndex;
	}

	@Column(name = "DESCRIPTION", length = 80)
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}


}
